package com.xintoucloud.pbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xintoucloud.pbs.dao.MessageSendDao;
import com.xintoucloud.pbs.entity.MessageSend;
import com.xintoucloud.pbs.entity.OrgnizationVo;
import com.xintoucloud.pbs.model.MessageSendVo;
import com.xintoucloud.pbs.service.MessageSendService;

@Service
@Transactional
public class MessageSendServiceImpl implements MessageSendService {
	@Autowired
	MessageSendDao messageSendDao;

	@Override
	public List viewList() {
		List<MessageSendVo> msVos = messageSendDao.messageSendList();
		return msVos;
	}

	@Override
	public List<OrgnizationVo> orgVoList() {
		List<OrgnizationVo> ovos = messageSendDao.orgVoList();
		return ovos;
	}

	@Override
	public void add(MessageSend ms) {
		messageSendDao.add(ms);
	}

}
